package com.naiterui.ehp.bs.recommend.vo;

import java.util.List;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/***
 * 常用处方
 * 
 * @author yangfuya
 */
@Data
@ApiModel("医生常用处方")
public class CommonPrescriptionVO {

    @ApiModelProperty(value = "常用处方单id, 修改时必填")
    private Long id;

    @ApiModelProperty(value = "医生Id")
    private Long doctorId;

    @NotBlank(message = "处方名称不能为空")
    @Size(max = 20, message = "处方名称长度不能大于20")
    @ApiModelProperty(value = "处方名称")
    private String name;

    @ApiModelProperty(value = "处方描述")
    private String description;

    @ApiModelProperty(value = "总售价")
    private Integer totalSalePrice;

    @NotEmpty(message = "处方长度不能为空")
    @Size(max = 10, message = "诊断数量不能超过10个")
    @ApiModelProperty(value = "临床诊断名称")
    private List<String> diagnosisList;

    @NotEmpty(message = "处方药品列表不能为空")
    @Size(max = 5, message = "处方药品列表不能超过5个")
    @ApiModelProperty(value = "处方药品列表")
    private List<CommonPrescriptionDetailVO> commonPrescriptionDetailList;

}
